package com.kevin.chat.entity;

import com.kevin.chat.framework.core.entity.BaseEntity;

import java.util.Date;
/*
 * 消息实体类
 * @author Kevin
 * @date 2021/1/13 15:56
 *
 */
public class MessageEntity extends BaseEntity {
    // 消息ID
    private int messageId;
    // 消息内容
    private String content;
    // 发送日期
    private Date date;
    // 是否已读
    private boolean isRead;
    // 发送人
    private UserEntity sendUser;
    // 接收人
    private UserEntity receiveUser;

    public int getMessageId() {
        return messageId;
    }

    public void setMessageId(int messageId) {
        this.messageId = messageId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public boolean isRead() {
        return isRead;
    }

    public void setRead(boolean read) {
        isRead = read;
    }

    public UserEntity getSendUser() {
        return sendUser;
    }

    public void setSendUser(UserEntity sendUser) {
        this.sendUser = sendUser;
    }

    public UserEntity getReceiveUser() {
        return receiveUser;
    }

    public void setReceiveUser(UserEntity receiveUser) {
        this.receiveUser = receiveUser;
    }
}
